package com.huang.foundation.integration;

import com.huang.foundation.clinent.SensitiveWordsClient;
import com.huang.base.AbstractIntegrationFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author HuangShen
 * @Date 2022/3/4 16:19
 * @Describe
 */
@Component(value = SensitiveWordsIntegration.NAME_NAME)
public class SensitiveWordsIntegration extends AbstractIntegrationFactoryBean<SensitiveWordsClient> {

    public static final String NAME_NAME = "sensitiveWordsIntegration";

    @Autowired
    private SensitiveWordsClient sensitiveWordsClient;

    @Override
    protected SensitiveWordsClient getTarget() {
        return sensitiveWordsClient;
    }

    @Override
    protected Class<SensitiveWordsClient> getTargetClass() {
        return SensitiveWordsClient.class;
    }
}
